import { WebPlugin } from '@capacitor/core';
import { IosPluginPlugin } from './definitions';

export class IosPluginWeb extends WebPlugin implements IosPluginPlugin {
  constructor() {
    super({
      name: 'IosPlugin',
      platforms: ['web'],
    });
  }
  deviceShock(): Promise<any> {
    throw new Error('Method not implemented.');
  }
  goAppStore(): Promise<any> {
    throw new Error('Method not implemented.');
  }
  getSystemInfo(): Promise<any> {
    throw new Error('getSystemInfo not implemented.');
  }

  async echo(options: { value: string }): Promise<{ value: string,result: boolean }> {
    console.log('ECHO', options);
    return {
      value: options.value,
      result: true
    };
  }
}

const IosPlugin = new IosPluginWeb();

export { IosPlugin };

import { registerWebPlugin } from '@capacitor/core';
registerWebPlugin(IosPlugin);
